package com.szgr.baoyin.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.szgr.baoyin.R;
import com.szgr.baoyin.adapter.BaoYinBrandRightAdapter;

/**
 * Created by Jimbo on 2015/9/21.
 */
public class BrandRightFragment extends Fragment {
    public BrandRightFragment(){}

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View ret = inflater.inflate(R.layout.fragment_brand_right,container,false);
        initView(ret);
        return ret;
    }

    private void initView(View ret) {
        ListView brandListView = (ListView) ret.findViewById(R.id.baoyin_brand_list_view_right);
        brandListView.setAdapter(new BaoYinBrandRightAdapter(getActivity()));
    }
}
